package com.demo.flight.config;

/**
 * @author ssy
 * @create 2022-03-13 17:06
 */
public enum ResultCodeEnum {
    /**
     * 返回编码 返回信息
     */
    SUCCESS("200", "成功"),
    SYSTEM_ERROR("-1", "系统异常"),
    PARAM_ERROR("1001", "参数异常"),
    USER_EXIST_ERROR("1002", "用户已存在"),
    USER_NOT_EXIST_ERROR("1003", "用户不存在"),
    ACCOUNT_OR_PASSWORD_ERROR("1004", "账号或密码错误"),
    VERIFICATION_CODE_ERROR("1005", "验证码错误"),
    OPERATION_DENY("1006", "操作不被允许"),
    FLIGHT_EXIST_ERROR("2002", "用户已存在"),
    FLIGHT_NOT_EXIST_ERROR("2003", "用户不存在")
    ;
    
    public String code;
    public String msg;
    
    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
